Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the boot script to the new allowlist naming #159

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

bensallen
Copy link
Contributor

With the patch:

# bash -x /usr/sbin/msr-safe start
+ set -o nounset
+ set -o pipefail
+ . /etc/sysconfig/msr-safe
+ rc=0
+ case "${1:-}" in
+ start
+ '[' -z '' ']'
++ al_cpu
+++ grep -m1 'cpu family' /proc/cpuinfo
+++ cut -f2 -d:
+++ tr -d ' '
+++ grep -m1 model /proc/cpuinfo
+++ cut -f2 -d:
+++ tr -d ' '
++ printf 'al_%.2X_%X\n' 6 143
+ AL_CPU=al_06_8F
+ '[' -z '' ']'
+ ALLOWLIST=/usr/share/msr-safe/allowlists/al_06_8F
+ '[' -f /usr/share/msr-safe/allowlists/al_06_8F ']'
+ /sbin/modprobe msr-safe
+ cat /usr/share/msr-safe/allowlists/al_06_8F
+ return 0
+ rc=0
+ exit 0

@rountree
Copy link
Collaborator

@kshoga1 Can you take a look at this?

@slabasan slabasan merged commit f0ef7a0 into LLNL:main Apr 23, 2024
2 checks passed
@bensallen bensallen deleted the fix_boot_script branch May 7, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants